package main

import (
	"probe/internal/command"
	"probe/internal/logger"

	"github.com/spf13/cobra"
)

var (
	rootCmd = &cobra.Command{
		Use:     "prober",
		Short:   "prober",
		Long:    command.BANNER,
		Version: command.VERSION,
	}
)

func main() {
	logger.InitLogger("prober")
	logger.Info("prober start")

	rootCmd.AddCommand(command.VersionCmd)
	rootCmd.AddCommand(command.RunCmd)
	rootCmd.AddCommand(command.InstallCmd)
	rootCmd.AddCommand(command.UninstallCmd)
	rootCmd.AddCommand(command.StopCmd)
	rootCmd.AddCommand(command.StartCmd)
	if err := rootCmd.Execute(); err != nil {
		panic(err)
	}

}
